home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
et
/
et3_0-a1.lha
/
et3
/
src
/
FindDialog.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-06
|
1KB
|
59 lines
#ifndef FindDialog_First
#ifdef __GNUG__
//pragma once
#pragma interface
#endif
#define FindDialog_First
#include "Dialog.h"
class RegularExp;
class TextView;
class TextField;
class OneOfCluster;
class ManyOfCluster;
class VObject;
//---- id's ----------------------------------------------------------------
const int cIdFind = cIdFirstUser + 1,
cIdDoFind = cIdFirstUser + 2,
cIdFindOpt = cIdFirstUser + 3,
cIdIgnCase = cIdFindOpt,
cIdMatchWord = cIdFindOpt + 1,
cIdFindMode = cIdFirstUser + 13,
cIdForward = cIdFindMode,
cIdBackward = cIdFindMode + 1;
//---- FindDialog --------------------------------------------------------------
class FindDialog : public Dialog {
public:
MetaDef(FindDialog);
FindDialog(char *title);
~FindDialog();
void SetTextView(TextView *tvp);
void FindAgain();
char *GetSearchPattern();
virtual bool DoFind(char *str, bool forward, bool msg= TRUE);
protected:
VObject *DoMakeContent();
void DoSetup();
void DoSetDefaults();
void Control(int id, int, void *v);
void SendDown(int id, int, void *v);
bool Compile(char *pattern);
protected:
RegularExp *rex;
TextView *tvp;
TextField *ei1;
OneOfCluster *modecl;
ManyOfCluster *optionscl;
VObject *find;
bool atEnd, atBegin;
};
#endif